<template>
<h2>AsyncAddress</h2>
<h3>{{data}}</h3>
</template>

<script>
import axios from 'axios'
import { defineComponent } from "vue";
export default defineComponent({
  name: "AsyncAddress",
  async setup() {
      /* return axios.get('/data/address.json').then(res=>{
          return {
              data:res.data
          }
      }) */
    const res = await axios.get('/data/address.json')
    return {
        data:res.data
    }
  }
  
});
</script>

<style lang="less" scoped>
</style>
